-- GENERATED SPELL FOR [Slitherblade Warrior] --


function spell0_4713(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_4713', 602, 1)
end

function spell1_4713(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4713', 10305, 1)
end

function spell2_4713(pUnit, Event) --@Localized Toxin,n/a--
pUnit:FullCastSpellOnTarget(7947,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4713', 0, 1)
end

function spell3_4713(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4713', 15000, 1)
end

function Sorts_4713(pUnit, Event)
local choix_sorts_4713 = math.random(0, 3)
if choix_sorts_4713 == 0 then
pUnit:RegisterEvent('spell0_4713', 1, 1)
end
if choix_sorts_4713 == 1 then
pUnit:RegisterEvent('spell1_4713', 1, 1)
end
if choix_sorts_4713 == 2 then
pUnit:RegisterEvent('spell2_4713', 1, 1)
end
if choix_sorts_4713 == 3 then
pUnit:RegisterEvent('spell3_4713', 1, 1)
end
end

function mob4713_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4713', math.random(1500, 3000), 1)
end

function mob4713_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4713_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4713_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4713, 1, 'mob4713_Action')
RegisterUnitEvent(4713, 2, 'mob4713_Leave')
RegisterUnitEvent(4713, 3, 'mob4713_Kill')
RegisterUnitEvent(4713, 4, 'mob4713_Die')
